<template>
	<view class="home">
		<view class="search">
			<uni-icons type="search" size="50"></uni-icons>
			<input type="text"  placeholder="输入搜索的商品" confirm-type="search" :value="searchValue"/>
			<button @click="searchProduct">搜索</button>
		</view>
	</view>
</template>

<script setup>
import { ref } from 'vue';
	const searchValue=ref("")
	function searchProduct(){
		console.log(searchValue.value)
		searchValue.value=""
	}
</script>

<style lang="scss" scoped>
	
</style>
